package com.xjtu.platform.security.register.dao;

import com.xjtu.platform.security.register.RegisterDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface RegisterDao {
    @Update("update user set email=#{email} where user_id=#{user_id}")
    boolean updateEmail(RegisterDto dto);
    @Select("select time from cache where cache_id=#{user_id}")
    long getCachetime(String user_id);
}
